<?php



$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CTourTableDraw.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("CTransporteTable.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDTour/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();


    echo "<p align='center'>";
    $action="CRegistroTransporte.php?default=0&servicio=1";$name="formulario_registro";$method="post";$NAME="Registro de paquete turístico";
    CDrawPageReg::getInstance()->DrawHead($action,$name,$method,$NAME);
    echo "</p>";
    CDrawPageReg::getInstance()->readOnly("transporte_has_pack_has_tour","TranPackTour");
    
    echo "<h2>Transporte </h2>";
    echo "<div id='dashboard_info'>";

    $campos = array("idTrans"=>"idTrans", "NamEmp"=>"NamEmp");
    CDrawPageReg::getInstance()->DrawSelect("transporte", $campos, "Asignar a empresa","idTrans");

    echo "</div>";

  //ResPackTour	restaurant_idRest	DesSer	
  //pack_has_tour_idPackTour	SerFlag	DayActRes	
  //NumRecRes	DateActRes	CanIteRec	PriUni	
  //MonPag	MonSol	MonCha	
  //AceRec	MonTot	CodIte
	  //Service Flag es 1
    $val_serv = array (":required","",":required",":url","");
    $serv_rest = array("DesSer"=>"Nombre del servicio","CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario");
    CDrawPageReg::getInstance()->DrawTextBox($serv_rest,$val_serv);
    

    $comments2 = array ("CommSer"=>"Detalles del servicio");
    $val_comments2 = array (":min_length;0 :max_length;255");
    CDrawPageReg::getInstance()->DrawTextBoxArea($comments2,$val_comments2);
    
    CDrawPageReg::getInstance()->DrawSubmmit("Añadir servicio");   
     
?>